find no of digits in python